import Service from './$axios_new'
//查询送货送检单号
export const queryDelivery = (deliveryCode) => {    
    return Service({
        url: `/gd-wms-warehousing/quality/queryDelivery?deliveryCode=${deliveryCode}`,
		method: 'get'
    })
}

//iqc质检信息
export const queryIqc = (deliveryCode) => {    
    return Service({
        url: `/gd-wms-warehousing/quality/queryIqc?deliveryCode=${deliveryCode}`,
		method: 'get'
    })
}

//iqc批量合格
export const batchQualified = (data) => {    
    return Service({
        url: `/gd-wms-warehousing/quality/batchQualified`,
        method: 'post',
        data:data,
    })
}

//iqc不合格
export const IqcUnqualified = (data) => {    
    return Service({
        url: `/gd-wms-warehousing/quality/IqcUnqualified`,
        method: 'post',
        data:data,
    })
}
//急件列表查看
export const showRushRecordList = (data) => {    
    return Service({
        url: `/gd-wms-warehousing/report/showRushRecordList`,
        method: 'post',
        data:data,
    })
}
///report/showRushRecordDetail 急件列表详情
export const showRushRecordDetail = (str) => {    
    return Service({
        url: `/gd-wms-warehousing/report/showRushRecordDetail?`+str,
        method: 'get',
    })
}
///report/partRushQua 急件部分合格
export const partRushQua = (data) => {    
    return Service({
        url: `/gd-wms-warehousing/report/partRushQua`,
        method: 'post',
        data:data,
    })
}
///report/allRushQua 急件全部合格
export const allRushQua = (data) => {    
    return Service({
        url: `/gd-wms-warehousing/report/allRushQua`,
        method: 'post',
        data:data,
    })
}
///report/showReceiveList 收货列表
export const showReceiveList = (data) => {    
    return Service({
        url: `/gd-wms-warehousing/report/showReceiveList`,
        method: 'post',
        data:data,
    })
}
//report/showReceiveDetail 2.1收货列表详情
export const showReceiveDetail = (str) => {    
    return Service({
        url: `/gd-wms-warehousing/report/showReceiveDetail?`+str,
        method: 'get',
    })
}
///quality/rollBack 状态回滚
export const rollBack = (data) => {    
    return Service({
        url: `/gd-wms-warehousing/quality/rollBack`,
        method: 'post',
        data:data,
    })
}
//report/showLaunchList 3.1上架列表
export const showLaunchList = (data) => {    
    return Service({
        url: `/gd-wms-warehousing/report/showLaunchList`,
        method: 'post',
        data:data,
    })
}
//returnGoods/specialList web端，特采列表查询
export const specialList = (data) => {    
    return Service({
        url: `/gd-wms-warehousing/returnGoods/specialList`,
        method: 'post',
        data:data,
    })
}
///returnGoods/returnList web端，退货列表查询
export const returnList = (data) => {    
    return Service({
        url: `/gd-wms-warehousing/returnGoods/returnList`,
        method: 'post',
        data:data,
    })
}
///returnGoods/querySupplier 下拉查询供应商
export const querySupplier = (str) => {    
    return Service({
        url: `/gd-wms-warehousing/returnGoods/querySupplier?`+str,
        method: 'get',
    })
}
///returnGoods/queryMaterial 下拉查询物料
export const queryMaterial = (str) => {    
    return Service({
        url: `/gd-wms-warehousing/returnGoods/queryMaterial?`+str,
        method: 'get',
    })
}
///returnGoods/queryStorage 下拉查询储位
export const queryStorage = (str) => {    
    return Service({
        url: `/gd-wms-warehousing/returnGoods/queryStorage?`+str,
        method: 'get',
    })
}
///returnGoods/queryReturn 仓退单web查询
export const queryReturn = (data) => {    
    return Service({
        url: `/gd-wms-warehousing/returnGoods/queryReturn`,
        method: 'post',
        data:data,
    })
}
///report/showPartRushQua .2急件部分合格显示
export const showPartRushQua = (data) => {    
    return Service({
        url: `/gd-wms-warehousing/report/showPartRushQua`,
        method: 'post',
        data:data,
    })
}
///report/rushLaunch 1.5急件上架
export const rushLaunch = (data) => {    
    return Service({
        url: `/gd-wms-warehousing/report/rushLaunch`,
        method: 'post',
        data:data,
    })
}
//report/getRushCheckNumber 1.3急件取样点击显示 查询收货列表及质检结果
export const getRushCheckNumber = (data) => {
    return Service({
        url: '/gd-wms-warehousing/report/getRushCheckNumber',
        method: 'post',
        data
    })
  }
//report/submitRushCheckNumber 1.3急件取样提交
export const submitRushCheckNumber = (data) => {
    return Service({
        url: '/gd-wms-warehousing/report/submitRushCheckNumber',
        method: 'post',
        data
    })
  }
///quality/iqcCount 
export const iqcCount = () => {    
    return Service({
        url: `/gd-wms-warehousing/quality/iqcCount`,
        method: 'get',
    })
}
///warehousing/generatingReports 质检报告
export const generatingReports = (data) => {    
    return Service({
        url: `/gd-wms-warehousing/warehousing/generatingReports`,
        method: 'post',
        data:data,
    })
}
//warehousing/queryInspectionSheetByLaboratory 6.2 web端实验室质检列表
export const queryInspectionSheetByLaboratory = (data) => {    
    return Service({
        url: `/gd-wms-warehousing/warehousing/queryInspectionSheetByLaboratory`,
        method: 'post',
        data:data,
    })
}
//质检单查询
export const  queryInspectionSheetBySearch= (data) => {
    return Service({
        url:'gd-wms-warehousing/warehousing/queryInspectionSheetBySearch',
        method:'post',
        data:data
    })
  }
//质检单详情---箱号
export const queryInspectionSheetBox= (data) => {
    return Service({
        url:'gd-wms-warehousing/warehousing/queryInspectionSheetBox',
        method:'post',
        data:data
    })
  }
//入库web端审核
export const reportSRM= (data) => {
    return Service({
        url:'gd-wms-warehousing/warehousing/reportSRM',
        method:'post',
        data:data
    })
  }
///query/queryListAndResult 查询收货列表及质检结果
export const queryListAndResult = (data) => {
    return Service({
        url: '/gd-wms-base/query/queryListAndResult',
        method: 'post',
        data
    })
  }
